06. Exercise: Create the MyCanvasView Class

22 05 AAK Create MyCanvasView SC

Exercise

In this exercise you are going to create the MyCanvasView class.

  1. In the app/java/com.example.android.minipaint package, create a New > Kotlin File/Class called MyCanvasView.

  2. Make the MyCanvasView class extend the View class and pass in the context: Context. Accept the suggested imports.

import android.content.Context
import android.view.View

class MyCanvasView(context: Context) : View(context) {
}